package com.atguigu.gmall.service.impl;

import com.atguigu.gmall.bean.*;
import com.atguigu.gmall.mapper.TradeStatsMapper;
import com.atguigu.gmall.service.TradeStatsService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.List;

/**
 * @author Felix
 * @date 2024/11/11
 */
@Service
public class TradeStatsServiceImpl implements TradeStatsService {

    @Autowired
    private TradeStatsMapper tradeStatsMapper;


    @Override
    public List<TradeProvinceTransaction> getProvinceTransaction(Integer date) {
        return tradeStatsMapper.selectProvinceTransaction(date);
    }
    @Override
    public List<SourceTransaction> getSourceTransaction(Integer date) {
        return tradeStatsMapper.selectSourceTransaction(date);
    }

    @Override
    public List<TransactionStatistics> getTransactionStatistics(Integer date) {
        return tradeStatsMapper.selectTransactionStatistics(date);
    }

    @Override
    public List<categoryOrderDetail> getCategoryOrderDetail(Integer date) {
        return tradeStatsMapper.selectCategoryOrderDetail(date);
    }

    @Override
    public List<subjectOrderDetail> getSubjectOrderDetail(Integer date) {
        return tradeStatsMapper.selectSubjectOrderDetail(date);
    }

    @Override
    public List<courseOrderDetail> getCourseOrderDetail(Integer date) {
        return tradeStatsMapper.selectCourseOrderDetail(date);
    }
}
